package cn.caidabao.camunda_demo.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

import java.util.HashSet;
import java.util.Set;

/**
 * @author cjn
 * @since 2024-07-16 17:44
 */
@Aspect
public class ThreadLocalRemoveAop {
    @Pointcut("@annotation(org.springframework.web.bind.annotation.RestController)")
    public void controller() {
    }

    @Around("controller()")
    public Object aroundMethod(ProceedingJoinPoint joinPoint) throws Throwable {
        try {
            return joinPoint.proceed(joinPoint.getArgs());
        }finally {

        }
    }
}
